package com.jrx.anytxn.param.dto.limit;

import java.math.BigDecimal;

/**
 * 授信使用limit
 *
 * @author Qingyao Xing
 * @date 2019/7/24 10:04
 */
public class PrCreditLimit {

    /**
     * 自增主键
     * 表字段:id
     */
    private Long id;

    /**
     * 额度模板id	唯一索引
     * 表字段:template_id
     */
    private String templateId;

    /**
     * 机构号
     * 表字段:organization_id
     */
    private String organizationId;

    /**
     * 额度节点id
     * 表字段:limit_id
     */
    private String limitId;
    /**
     * 描述
     * 表字段:limit_desc
     */
    private String limitDesc;

    /**
     * 额度种类	0 = 信用额度1 = 抵押额度2 = 专项额度3 = 担保额度
     * 表字段:limit_class
     */
    private String limitClass;

    /**
     * 使用方式	0 = 循环1 = 非循环
     * 表字段:use_mode
     */
    private String useMode;

    /**
     * 上层额度节点id
     * 表字段:father_limit_id
     */
    private String fatherLimitId;

    /**
     * 闭合标志 0 = 开放1 = 闭合 子节点之和是否允许大于当前节点，开放允许大于，闭合不允许
     * 表字段:oc_flag
     */
    private String ocFlag;

    /**
     * 检核标识	0 = 不检查1 = 检查 用信是否检核本节点可用额度
     * 表字段:auth_check
     */
    private String authCheck;

    /**
     * 占比	额度节点占其上层额度节点最终授信额度的百分比
     * 表字段:percentage
     */
    private BigDecimal percentage;

    /**
     * 是否需要激活(0 否 1 是)
     * 表字段:need_active
     */
    private String needActive;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getLimitId() {
        return limitId;
    }

    public void setLimitId(String limitId) {
        this.limitId = limitId;
    }


    public String getLimitDesc() {
        return limitDesc;
    }

    public void setLimitDesc(String limitDesc) {
        this.limitDesc = limitDesc;
    }

    public String getLimitClass() {
        return limitClass;
    }

    public void setLimitClass(String limitClass) {
        this.limitClass = limitClass;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getUseMode() {
        return useMode;
    }

    public void setUseMode(String useMode) {
        this.useMode = useMode;
    }

    public String getFatherLimitId() {
        return fatherLimitId;
    }

    public void setFatherLimitId(String fatherLimitId) {
        this.fatherLimitId = fatherLimitId;
    }

    public String getOcFlag() {
        return ocFlag;
    }

    public void setOcFlag(String ocFlag) {
        this.ocFlag = ocFlag;
    }

    public String getAuthCheck() {
        return authCheck;
    }

    public void setAuthCheck(String authCheck) {
        this.authCheck = authCheck;
    }

    public BigDecimal getPercentage() {
        return percentage;
    }

    public void setPercentage(BigDecimal percentage) {
        this.percentage = percentage;
    }

    public String getNeedActive() {
        return needActive;
    }

    public void setNeedActive(String needActive) {
        this.needActive = needActive;
    }

    @Override
    public String toString() {
        return "PrCreditLimit{" +
                "id=" + id +
                ", templateId='" + templateId + '\'' +
                ", organizationId='" + organizationId + '\'' +
                ", limitId='" + limitId + '\'' +
                ", limitDesc='" + limitDesc + '\'' +
                ", limitClass='" + limitClass + '\'' +
                ", useMode='" + useMode + '\'' +
                ", fatherLimitId='" + fatherLimitId + '\'' +
                ", ocFlag='" + ocFlag + '\'' +
                ", authCheck='" + authCheck + '\'' +
                ", percentage=" + percentage +
                ", needActive='" + needActive + '\'' +
                '}';
    }
}
